//part1:C01:ex1.9.cpp -- sum of 50 to 100.
#include <iostream>

int main(void)
{
    int sum = 0; 
    int i = 50;
    while (i <= 100)
    {
        sum += i;
        i++;
    }
    std::cout << "sum of 50 to 100 :" 
        << sum  << std::endl;
    return 0;
}
